package com.twu.biblioteca;

import com.twu.biblioteca.menu.Menu;

public class BibliotecaApp {
    public static String welcomeMessage;
    public static Menu menu;
    public static BibliotecaLibrary bibliotecaLibrary;


    public BibliotecaApp(Menu menu1, BibliotecaLibrary bibliotecaLibrary1) {
        menu = menu1;
        bibliotecaLibrary = bibliotecaLibrary1;
        welcomeMessage = "Welcome! This is the Biblioteca app";
    }

    public static void main(String[] args) {
        BibliotecaApp app = new BibliotecaApp(new Menu(System.out, System.in), new BibliotecaLibrary());
        app.execute();
    }

    private void execute() {
        Menu.println(printWelcomeMessage());
        User.createUsers();
        menu.run();

    }

    public String printWelcomeMessage() {
        return welcomeMessage;
    }

}
